//
//  Scene_MainMenu.m
//  Return Of The Lemi
//
//  Created by Paul Vishayanuroj on 11/1/09.
//  Copyright 2009 Cornell University. All rights reserved.
//

#import "Scene_MainMenu.h"
#import "Scene_Game.h"

@implementation Scene_MainMenu

// Initialize the scene instance
- (id)init 
{
	if((self = [super init])) 
	{		
		[self addChild:[Layer_MainMenu node]];
	}
	return self;
}

@end

@implementation Layer_MainMenu

- (id) init {
	if((self = [super init]))
	{
        [MenuItemFont setFontSize:20];
        [MenuItemFont setFontName:@"Helvetica"];
        MenuItem *start = [MenuItemFont itemFromString:@"Start Game" target:self selector:@selector(StartGame:)];
        MenuItem *help = [MenuItemFont itemFromString:@"Help" target:self selector:@selector(Help:)];
        Menu *menu = [Menu menuWithItems:start, help, nil];
        [menu alignItemsVertically];
        [self addChild:menu];
    }
    return self;
}

- (void) StartGame: (id)sender
{
	NSLog(@"Start Game");
    Scene_Game * gameScene = [Scene_Game node];
    [[Director sharedDirector] replaceScene:gameScene];
}

- (void) Help: (id)sender
{
	NSLog(@"Help");
}


@end
